package com.personal.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel(value = "AllQueryBO", description = "查询全站的BO")
@Data
public class AllQueryBO {

    @ApiModelProperty(value = "分类id",example = "1")
    private Integer typeId;

    @ApiModelProperty("搜索内容")
    private String content;

    @ApiModelProperty(value = "浏览量(1：最多浏览量搜索)，和发布日期只能二选一", example = "1")
    private Integer viewCount;

    @ApiModelProperty(value = "发布日期（1：最新搜索）",example = "1")
    private Integer createTime;

    @ApiModelProperty(value = "第几页", example = "1")
    @NotNull(message = "分页参数不能为空")
    private Integer pageNum;

    @ApiModelProperty(value = "每页几条", example = "10")
    @NotNull(message = "分页参数不能为空")
    private Integer pageSize;
}
